<template>
  <router-view v-slot="{ Component }">
    <keep-alive :include="keepAliveRoutes">
      <component :is="Component" />
    </keep-alive>
  </router-view>
</template>

<script>
import { defineComponent, computed } from "vue";
import store from '@/store'

export default defineComponent({
  name: 'Order',
  setup() {
    const keepAliveRoutes = computed(() => store.getters.cachedViews)
    console.log(keepAliveRoutes)
    return {
      keepAliveRoutes
    }
  },
});
</script>

<style lang="less" scoped></style>
